﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My.Resources;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_ThongTinThemPhatHanhHoaDon : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("CmdChon")]
        private Button _CmdChon;
        [AccessedThroughProperty("CmdThoat")]
        private Button _CmdThoat;
        [AccessedThroughProperty("GroupBox1")]
        private GroupBox _GroupBox1;
        [AccessedThroughProperty("GroupBox2")]
        private GroupBox _GroupBox2;
        [AccessedThroughProperty("Label2")]
        private Label _Label2;
        [AccessedThroughProperty("Label3")]
        private Label _Label3;
        [AccessedThroughProperty("Panel1")]
        private Panel _Panel1;
        [AccessedThroughProperty("txtCoQuanThue")]
        private TextBox _txtCoQuanThue;
        [AccessedThroughProperty("txtDonViChuQuan")]
        private TextBox _txtDonViChuQuan;
        [AccessedThroughProperty("txtMSTDonViChuQuan")]
        private TextBox _txtMSTDonViChuQuan;
        private IContainer components;
        private bool mAllowAdd;
        private bool mAllowDel;
        private bool mAllowEdit;
        private bool mAllowView;
        private clsConfig objCP;

        public Frm_ThongTinThemPhatHanhHoaDon()
        {
            base.Load += new EventHandler(this.Frm_ThongTinThemPhatHanhHoaDon_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.objCP = new clsConfig();
            this.InitializeComponent();
        }

        private void CmdChon_Click(object sender, EventArgs e)
        {
            if (this.txtCoQuanThue.Text.Trim() == "")
            {
                LVYModule.ShowWarning("Bạn cần phải nhập t\x00ean Cơ quan thuế tiếp nhận th\x00f4ng b\x00e1o !");
                this.txtCoQuanThue.Focus();
            }
            else
            {
                this.objCP.Load();
                this.objCP.DonViChuQuan = this.txtDonViChuQuan.Text.Trim();
                this.objCP.MSTDonViChuQuan = this.txtMSTDonViChuQuan.Text.Trim();
                this.objCP.CoQuanThue = this.txtCoQuanThue.Text.Trim();
                this.objCP.Save();
                LVYModule.InitProgram();
                this.DialogResult = DialogResult.OK;
            }
        }

        private void CmdThoat_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            try
            {
                if (disposing && (this.components != null))
                {
                    this.components.Dispose();
                }
            }
            finally
            {
                base.Dispose(disposing);
            }
        }

        private void Frm_ThongTinThemPhatHanhHoaDon_Load(object sender, EventArgs e)
        {
            LVYModule.GetUserRight(ref this.mAllowView, ref this.mAllowDel, ref this.mAllowEdit, ref this.mAllowAdd, Conversions.ToString(this.Tag), modGeneral.H_USERNAME);
            if (!this.mAllowView)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn kh\x00f4ng c\x00f3 quyền xem, li\x00ean hệ với người quản trị để biết th\x00eam chi tiết.", ""));
                this.Dispose();
            }
            else
            {
                this.objCP.Load();
                this.txtDonViChuQuan.Text = this.objCP.DonViChuQuan.Trim();
                this.txtMSTDonViChuQuan.Text = this.objCP.MSTDonViChuQuan.Trim();
                this.txtCoQuanThue.Text = this.objCP.CoQuanThue.Trim();
            }
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            this.Label2 = new Label();
            this.Label3 = new Label();
            this.txtDonViChuQuan = new TextBox();
            this.txtMSTDonViChuQuan = new TextBox();
            this.txtCoQuanThue = new TextBox();
            this.GroupBox1 = new GroupBox();
            this.GroupBox2 = new GroupBox();
            this.Panel1 = new Panel();
            this.CmdChon = new Button();
            this.CmdThoat = new Button();
            this.GroupBox1.SuspendLayout();
            this.GroupBox2.SuspendLayout();
            this.Panel1.SuspendLayout();
            this.SuspendLayout();
            this.Label2.AutoSize = true;
            this.Label2.BackColor = Color.Transparent;
            this.Label2.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
            Point point = new Point(13, 0x22);
            this.Label2.Location = point;
            this.Label2.Name = "Label2";
            Size size = new Size(0x3b, 13);
            this.Label2.Size = size;
            this.Label2.TabIndex = 1;
            this.Label2.Text = "T\x00ean đơn vị";
            this.Label3.AutoSize = true;
            this.Label3.BackColor = Color.Transparent;
            this.Label3.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
            point = new Point(13, 0x3a);
            this.Label3.Location = point;
            this.Label3.Name = "Label3";
            size = new Size(60, 13);
            this.Label3.Size = size;
            this.Label3.TabIndex = 2;
            this.Label3.Text = "M\x00e3 số thuế";
            this.txtDonViChuQuan.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
            point = new Point(0x68, 0x1f);
            this.txtDonViChuQuan.Location = point;
            this.txtDonViChuQuan.Name = "txtDonViChuQuan";
            size = new Size(0x1af, 20);
            this.txtDonViChuQuan.Size = size;
            this.txtDonViChuQuan.TabIndex = 4;
            point = new Point(0x68, 0x37);
            this.txtMSTDonViChuQuan.Location = point;
            this.txtMSTDonViChuQuan.MaxLength = 14;
            this.txtMSTDonViChuQuan.Name = "txtMSTDonViChuQuan";
            size = new Size(0x8e, 20);
            this.txtMSTDonViChuQuan.Size = size;
            this.txtMSTDonViChuQuan.TabIndex = 5;
            this.txtCoQuanThue.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
            point = new Point(0x10, 0x18);
            this.txtCoQuanThue.Location = point;
            this.txtCoQuanThue.Name = "txtCoQuanThue";
            size = new Size(0x207, 20);
            this.txtCoQuanThue.Size = size;
            this.txtCoQuanThue.TabIndex = 6;
            this.GroupBox1.BackColor = Color.Transparent;
            this.GroupBox1.Controls.Add(this.txtDonViChuQuan);
            this.GroupBox1.Controls.Add(this.Label2);
            this.GroupBox1.Controls.Add(this.txtMSTDonViChuQuan);
            this.GroupBox1.Controls.Add(this.Label3);
            this.GroupBox1.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
            point = new Point(12, 12);
            this.GroupBox1.Location = point;
            this.GroupBox1.Name = "GroupBox1";
            size = new Size(0x224, 0x5e);
            this.GroupBox1.Size = size;
            this.GroupBox1.TabIndex = 7;
            this.GroupBox1.TabStop = false;
            this.GroupBox1.Text = "Đơn vị chủ quản (Tổng c\x00f4ng ty)";
            this.GroupBox2.BackColor = Color.Transparent;
            this.GroupBox2.Controls.Add(this.txtCoQuanThue);
            this.GroupBox2.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
            point = new Point(12, 0x84);
            this.GroupBox2.Location = point;
            this.GroupBox2.Name = "GroupBox2";
            size = new Size(0x224, 0x3d);
            this.GroupBox2.Size = size;
            this.GroupBox2.TabIndex = 8;
            this.GroupBox2.TabStop = false;
            this.GroupBox2.Text = "T\x00ean cơ quan thuế tiếp nhận th\x00f4ng b\x00e1o";
            this.Panel1.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgleft;
            this.Panel1.Controls.Add(this.CmdChon);
            this.Panel1.Controls.Add(this.CmdThoat);
            this.Panel1.Dock = DockStyle.Bottom;
            point = new Point(0, 0xd3);
            this.Panel1.Location = point;
            this.Panel1.Name = "Panel1";
            size = new Size(0x23e, 0x29);
            this.Panel1.Size = size;
            this.Panel1.TabIndex = 9;
            this.CmdChon.Image = ACCOUNTING.My.Resources.Resources.Selected;
            this.CmdChon.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x173, 7);
            this.CmdChon.Location = point;
            this.CmdChon.Name = "CmdChon";
            size = new Size(0x60, 0x1c);
            this.CmdChon.Size = size;
            this.CmdChon.TabIndex = 0;
            this.CmdChon.Text = "Chọn";
            this.CmdChon.UseVisualStyleBackColor = true;
            this.CmdThoat.DialogResult = DialogResult.Cancel;
            this.CmdThoat.Image = ACCOUNTING.My.Resources.Resources.Closed;
            this.CmdThoat.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x1d9, 7);
            this.CmdThoat.Location = point;
            this.CmdThoat.Name = "CmdThoat";
            size = new Size(0x60, 0x1c);
            this.CmdThoat.Size = size;
            this.CmdThoat.TabIndex = 0;
            this.CmdThoat.Text = "Tho\x00e1t";
            this.CmdThoat.UseVisualStyleBackColor = true;
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            this.BackgroundImage = ACCOUNTING.My.Resources.Resources.background;
            size = new Size(0x23e, 0xfc);
            this.ClientSize = size;
            this.Controls.Add(this.Panel1);
            this.Controls.Add(this.GroupBox2);
            this.Controls.Add(this.GroupBox1);
            this.FormBorderStyle = FormBorderStyle.FixedSingle;
            this.MaximizeBox = false;
            size = new Size(580, 280);
            this.MaximumSize = size;
            size = new Size(580, 280);
            this.MinimumSize = size;
            this.Name = "Frm_ThongTinThemPhatHanhHoaDon";
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Tag = "BC-HD02";
            this.Text = "THONG TIN BO SUNG";
            this.GroupBox1.ResumeLayout(false);
            this.GroupBox1.PerformLayout();
            this.GroupBox2.ResumeLayout(false);
            this.GroupBox2.PerformLayout();
            this.Panel1.ResumeLayout(false);
            this.ResumeLayout(false);
        }

        internal virtual Button CmdChon
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdChon;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdChon_Click);
                if (this._CmdChon != null)
                {
                    this._CmdChon.Click -= handler;
                }
                this._CmdChon = value;
                if (this._CmdChon != null)
                {
                    this._CmdChon.Click += handler;
                }
            }
        }

        internal virtual Button CmdThoat
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdThoat;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdThoat_Click);
                if (this._CmdThoat != null)
                {
                    this._CmdThoat.Click -= handler;
                }
                this._CmdThoat = value;
                if (this._CmdThoat != null)
                {
                    this._CmdThoat.Click += handler;
                }
            }
        }

        internal virtual GroupBox GroupBox1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox1 = value;
            }
        }

        internal virtual GroupBox GroupBox2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox2 = value;
            }
        }

        internal virtual Label Label2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label2 = value;
            }
        }

        internal virtual Label Label3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label3 = value;
            }
        }

        internal virtual Panel Panel1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel1 = value;
            }
        }

        internal virtual TextBox txtCoQuanThue
        {
            [DebuggerNonUserCode]
            get
            {
                return this._txtCoQuanThue;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._txtCoQuanThue = value;
            }
        }

        internal virtual TextBox txtDonViChuQuan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._txtDonViChuQuan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._txtDonViChuQuan = value;
            }
        }

        internal virtual TextBox txtMSTDonViChuQuan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._txtMSTDonViChuQuan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._txtMSTDonViChuQuan = value;
            }
        }
    }
}

